<?php
namespace app\adminweb\controller;
header("Access-Control-Allow-Origin: * ");
header("Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE");
/**
 * Class Login
 * @package app\mini\controller
 * 登陆控制器
 */
class Login extends \think\Controller
{
    //发送登陆短信
    public function send()
    {
        $account = new \app\common\model\Account();
        return $account->send();
    }

    //登陆方法
    public function login()
    {
        $account = new \app\common\model\Account();
        return $account->login();
    }

    //注销方法
    public function logout()
    {
        $account = new \app\common\model\Account();
        return $account->logout();
    }
}